﻿using AutoMapper;
using Ducu.BLL.Entity;
using Ducu.SRV.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ProdService.ViewModelMap
{
    internal class UserModelMap
    {
        internal static void Init()
        {
            Mapper.CreateMap<HistoryItem, CreditItemModel>()
                .ForMember(c => c.PlanTitle, opt => opt.MapFrom(h => h.Task.Plan.Title))
                ;
        }
    }
}
